<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>jq动画</title>
	<script type="text/javascript" src="js/jquery-1.12.4.min.js"></script>
	<script type="text/javascript">
		$(function () {
			$('#div1').animate({width:200,height:200},1000,function () {
				// body...
				// alert("完了");

				$(this).animate({marginLeft:500},1000);
			});
		})


	</script>
	<style type="text/css">
		.box{
			width: 100px;
			height: 100px;
			background-color: gold;
		}

	</style>
</head>
<body>
	<div id="div1" class="box"></div>
</body>
</html>